﻿<phone:PhoneApplicationPage 
    x:Class="WeiTalk.ContentDefaultPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:c ="clr-namespace:WeiTalk.Controls"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True" Loaded="PhoneApplicationPage_Loaded" BackKeyPress="PhoneApplicationPage_BackKeyPress" Background="Black">
	<phone:PhoneApplicationPage.ApplicationBar>
		<shell:ApplicationBar x:Name="applicationBar" Mode="Minimized" Opacity="0.845" BackgroundColor="#FF232323">
            <shell:ApplicationBarIconButton x:Name="mibtnRefresh" IconUri="/Images/appbar.refresh.rest.png" Text="刷新" Click="mibtnRefresh_Click"/>
            <shell:ApplicationBarIconButton x:Name="mibtnMessage" IconUri="/Images/message.png" Text="信息" Click="mibtnMessage_Click"/>
            <!--<shell:ApplicationBarIconButton x:Name="mibtnPeople" IconUri="/Images/people.png" Text="人脉" Click="mibtnPeople_Click"/>-->
            <shell:ApplicationBarIconButton  IconUri="/Images/appbar.download.rest.png" Text="加载图片" IsEnabled="False" Click="ImageViewer_Click" />
		</shell:ApplicationBar>
	</phone:PhoneApplicationPage.ApplicationBar>
    
    <!--LayoutRoot 是包含所有页面内容的根网格-->
    <Grid x:Name="LayoutRoot" Background="#FF1BA1E2">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel 包含应用程序的名称和页标题-->

        <!--ContentPanel - 在此处放置其他内容-->
        <Grid x:Name="ContentPanel" Grid.Row="0" Margin="0">
        	<Grid.Background>
        		<ImageBrush Stretch="Fill"/>
        	</Grid.Background>
            <ScrollViewer HorizontalAlignment="Left" Name="svUserTimeLine" VerticalAlignment="Top" ManipulationCompleted="svUserTimeLine_ManipulationCompleted" MouseMove="svUserTimeLine_MouseMove" ManipulationStarted="svUserTimeLine_ManipulationStarted" >
                <StackPanel x:Name="spContent">
                    <c:PullAndDownControl x:Name="pullAndDownControl" Margin="0,-50,0,20"/>
                </StackPanel>
            </ScrollViewer>
        </Grid>
    </Grid>
 
    <!--演示 ApplicationBar 用法的示例代码-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="按钮 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="按钮 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="菜单项 1"/>
                <shell:ApplicationBarMenuItem Text="菜单项 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
